<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Branches.aspx.cs" Inherits="Pages_Customer_Branches" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><div class="header">Our Branches</div><br /><br />
    <asp:GridView ID="gvBranch" runat="server" AutoGenerateColumns="False" DataKeyNames="PinCode" DataSourceID="SqlDataSource2" HeaderStyle-CssClass="smallheader" HeaderStyle-BackColor="#a9c0f2" BorderColor="#556cb0" GridLines="Vertical" Width="560px">
        <Columns>
        <asp:BoundField DataField="BranchName" HeaderText="Branch Name" SortExpression="BranchName" />
            <asp:BoundField DataField="PinCode" HeaderText="Pin Code" ReadOnly="True" SortExpression="PinCode" />          
            <asp:BoundField DataField="BranchAddress" HeaderText="Address" SortExpression="BranchAddress" />
            <asp:BoundField DataField="BranchFax" HeaderText="Fax" SortExpression="BranchFax" />
            <asp:BoundField DataField="BranchPhone" HeaderText="Phone" SortExpression="BranchPhone" />
        </Columns>
        <HeaderStyle HorizontalAlign="Center" />
        <AlternatingRowStyle BackColor="#DCDCDC" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:TarsConnection %>"
        SelectCommand="SELECT [PinCode], [BranchName], [BranchAddress], [BranchFax], [BranchPhone] FROM [Branches]">
    </asp:SqlDataSource>
    <br />
</asp:Content>

